package com.hspedu.exception_;

/**
 * @author yulian174
 * @version 1.0
 */
public class NumberFormatException_ {
    public static void main(String[] args) {
        String name = "最喜欢晓琳";
        //将 String 转成 int
        int num = Integer.parseInt(name);//抛出 NumberFormatException
        System.out.println(num);//1234
    }
}
